//package com.doit.day02
//
//class MyScalaIterable extends Iterable[Hero]{
//  override def iterator: Iterator[Hero] = new MyScalaIterator
//}
//
//object Test2{
//  def main(args: Array[String]): Unit = {
//    val iterable: MyScalaIterable = new MyScalaIterable
//    val iterator: Iterator[Hero] = iterable.iterator
//    while (iterator.hasNext){
//      println(iterator.next())
//    }
//  }
//}
